
let listBehavior = require('../../behavior/list')

Page({
  behaviors: [listBehavior],
  data: {
    active: 3,
    vanTabList: ['全部', '待支付', '待预约', '待出行', '已完成'],
  },
  onChange (e) {
    let { index } = e.detail;
    wx.showLoading()
    this.setData({ active: index }, () => {
      wx.hideLoading()
    })
  },
  getDataList () {

  },
  gotoNacState () {
    let { active } = this.data;
    active = active || 1
    console.log(active)
    wx.navigateTo({
      url: `/repairPages/order_details/order_details?state=${active}`,
    });
  }
})
